package com.bulletelc.apollopre.constants;

import android.support.annotation.IntDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * author: lhl
 * date  : 2017/11/04
 * desc  : 时间相关常量
 *
 *
 */

public final class TimeConstants {

    /**
     * 毫秒与毫秒的倍数
     */
    public static final int MSEC = 1;
    /**
     * 秒与毫秒的倍数
     */
    public static final int SEC  = 1000;
    /**
     * 分与毫秒的倍数
     */
    public static final int MIN  = SEC*60;
    /**
     * 时与毫秒的倍数
     */
    public static final int HOUR = MIN*60;
    /**
     * 天与毫秒的倍数
     */
    public static final int DAY  = HOUR*24;

    @IntDef({MSEC, SEC, MIN, HOUR, DAY})
    @Retention(RetentionPolicy.SOURCE)
    public @interface Unit {
    }
}
